<?php
/**
 * View Archivio Utenti LaFabbrica.org
 * 
 * @author     luigi.pastore (gigi@la-fabbrica.org)
 * @created    21-apr-2011
 * @package    LaFabbrica
 * @copyright  Copyright (c) 2011 Luigi Pastore
 */
?>
<script type="text/javascript">
    //<![CDATA[

    $(document).ready(function(){
	var pagination = $('#posts').pagination({
	    'targetUrl' : '/admin/ajax/list/users',
	    'orderField' : 'user_id',
	    'orderDir' : 'asc'
	});

    });

    //]]>
</script>
<div class="info">
    <h2>Elenco Utenti</h2>
    <div>Per inserire un nuovo post...</div>
</div>

<form>
    <ul>
	<li class="addnew">
	    <a class="button" href="nuovo">
		<img src="/images/admin/add-new.png" />Nuovo Utente
	    </a>
	</li>	
	    
	<li id="fo2li107" class="likert col4">
	    <div>
		<table>
		    <caption id="title107">
		    Tot: <strong><?php echo count( $this->users ) ?></strong> Utenti.
		    </caption>
		    <thead>
			<tr>
			    <td colspan="5" class="pagination">
				<div class="paginator">
				    <span class="prev">
					<a href="javascript: void(0);">&nbsp;</a>
				    </span>
				    
				    <span class="loader">Sto caricando...</span>
				    <span class="next">
					<a href="javascript: void(0);">&nbsp;</a>
				    </span>
				</div>
			    </td>
			</tr>
			<tr>
			    <th class="sortable default {ref: 'user_name'}">Nome Cognome</th>
			    <td class="sortable default {ref: 'user_email'}">Email</td>
			    <td class="sortable default {ref: 'group_id'}">Gruppo</td>
			    <td class="sortable asc {ref: 'user_lastlogin'}">Ultimo Accesso</td>
			    <td>&nbsp;</td>
			</tr>
		    </thead>
		    <tbody id="posts">
			<!--		    Questo contenuto verrÃƒÆ’Ã‚Â  rimpiazzato dalla paginazione-->
		    </tbody>
		    <tfoot>
			<tr>
			    <td colspan="5" class="pagination">
				<div class="paginator">
				    <span class="prev">
					<a href="javascript: void(0);">&nbsp;</a>
				    </span>
				    <div class="pagercontainer">
				    
				    </div>
				    <span class="next">
					<a href="javascript: void(0);">&nbsp;</a>
				    </span>
				</div>
			    </td>
			</tr>
		    </tfoot>
		</table>
	    </div>
	</li>
    </ul>
</form>
